<?php
namespace app\index\controller;
use think\Db;
class Business extends Base{
    public function business(){
        if(input("param.id")){
            $id=input("param.id");
            $express_banner=Db::name('express_banner')->where('id',1)->find();
            $express=Db::name('express_style')->order('id asc')->select();
            $businessdetail=Db::name('express_style')->where('id',$id)->find();
            $this->assign('system_set',$this->system_set());
            $this->assign('express_banner',$express_banner);
            $this->assign('express',$express);
            $this->assign('businessdetail',$businessdetail);
            return $this->fetch('businessdetail');
        }else{
            $express_banner=Db::name('express_banner')->where('id',1)->find();
            $express=Db::name('express_style')->order('id asc')->select();
            $this->assign('system_set',$this->system_set());
            $this->assign('express_banner',$express_banner);
            $this->assign('express',$express);
            return $this->fetch();
        }
    }
}
